package cn.itcast.temp

/**
 * Author itcast
 * Desc
 */
object Interview_3 {
  def main(args: Array[String]): Unit = {
    for(i <- 0 to 63){
      val binaryString: String = i.toBinaryString
      println(i,binaryString)
    }
  }
}
/*
(00,000000)
(01,000001)
(02,000010)
(03,000011)
(04,000100)
(05,000101)
(06,000110)
(07,000111)
(08,001000)
(09,001001)
(10,001010)
(11,001011)
(12,001100)
(13,001101)
(14,001110)
(15,001111)
(16,010000)
(17,010001)
(18,010010)
(19,010011)
(20,010100)
(21,010101)
(22,010110)
(23,010111)
(24,011000)
(25,011001)
(26,011010)
(27,011011)
(28,011100)
(29,011101)
(30,011110)
(31,011111)
(32,100000)
(33,100001)
(34,100010)
(35,100011)
(36,100100)
(37,100101)
(38,100110)
(39,100111)
(40,101000)
(41,101001)
(42,101010)
(43,101011)
(44,101100)
(45,101101)
(46,101110)
(47,101111)
(48,110000)
(49,110001)
(50,110010)
(51,110011)
(52,110100)
(53,110101)
(54,110110)
(55,110111)
(56,111000)
(57,111001)
(58,111010)
(59,111011)
(60,111100)
(61,111101)
(62,111110)
(63,111111)
 */